package com.huluobo.a2201mvvm_imdemo.mine;

import androidx.lifecycle.MutableLiveData;

import com.huluobo.a2201mvvm_imdemo.mvvm.BaseViewModel;

/**
 * Created by LC on 2024/3/25.
 */
public class MineViewModel extends BaseViewModel<MineRepo> {
    MutableLiveData<String> logoutSuccess = new MutableLiveData<>();
    MutableLiveData<String> logoutFailed = new MutableLiveData<>();

    public void logout() {
        repo.logout(logoutSuccess, logoutFailed);
    }

    @Override
    protected MineRepo createRepo() {
        return new MineRepo();
    }
}
